package ai.platon.pulsar.context.support

import ai.platon.pulsar.common.config.ImmutableConfig
import ai.platon.pulsar.persist.WebDb
import ai.platon.pulsar.persist.WebPage
import ai.platon.pulsar.persist.gora.generated.GWebPage
import java.nio.ByteBuffer

class DefaultsWebDb(var conf: ImmutableConfig) :WebDb(conf){
    override fun get(url: String, b: Boolean): WebPage? {
        TODO("Not yet implemented")
    }

    override fun get(originalUrl: String, norm: Boolean, fields: Array<String>?): WebPage {
        TODO("Not yet implemented")
    }

    override fun getOrNull(url: String, b: Boolean): WebPage? {
        TODO("Not yet implemented")
    }

    override fun getOrNull(originalUrl: String, norm: Boolean, fields: Array<String>?): WebPage? {
        TODO("Not yet implemented")
    }

    override fun getOrNull(originalUrl: String, fields: Iterable<GWebPage.Field>): WebPage? {
        TODO("Not yet implemented")
    }

    override fun getOrNull(url: String, content: GWebPage.Field): WebPage? {
        TODO("Not yet implemented")
    }

    override fun getContent(url: String): ByteBuffer? {
        TODO("Not yet implemented")
    }

    override fun getContentAsString(url: String): String? {
        TODO("Not yet implemented")
    }

    override fun exists(url: String): Any {
        TODO("Not yet implemented")
    }

    override fun put(page: WebPage, b: Boolean) {
        TODO("Not yet implemented")
    }

    override fun put(page: WebPage) :Boolean{
        TODO("Not yet implemented")
    }

    override fun delete(url: String) {
        TODO("Not yet implemented")
    }

    override fun scan(urlPrefix: String, fields: Iterable<GWebPage.Field>): Iterator<WebPage>? {
        TODO("Not yet implemented")
    }

    override fun scan(urlBase: String, fields: Array<String>): Iterator<WebPage> {
        TODO("Not yet implemented")
    }

    override fun scan(urlPrefix: String): Iterator<WebPage>? {
        TODO("Not yet implemented")
    }

    override fun flush() {
        TODO("Not yet implemented")
    }

    override fun schemaName(): String? {
        return "";
    }

    override fun canConnect(): Boolean {
        TODO("Not yet implemented")
    }

    override fun get0(url: String, b: Boolean, arrayOf: Array<String>): GWebPage? {
        TODO("Not yet implemented")
    }

    override fun close() {
        TODO("Not yet implemented")
    }

}